/**
 * PageMarket
 * VersionAction.java
 * com.android.pagemarket.io.protocol.in
 * 
 */
package com.android.pagemarket.io.protocol.in;

import com.android.pagemarket.io.protocol.out.Version;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-5
 * @see : 升级、更新接口
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class VersionAction extends HttpAction<Version>
{
//    code    是   N   版本号
    public VersionAction(int code)
    {
        super("10");
        addJsonParam("code", code);
        addJsonParam("type", 2);
    }

    @Override
    protected Version parseJson(String response) throws Exception
    {
        Version one = new Version();
        one.parseResult(response);
        return one;
    }

}
